using System;
using System.Windows.Forms;

namespace Curriculum.UI.Clases.ManejadorControles
{
	/// <summary>
	/// Summary description for ManejadorControlesFactory.
	/// </summary>
	public class ManejadorControlesFactory
	{
		public static ManejadorControles FactoryMethod(string type)
		{
			ManejadorControles mControles = null;
			switch(type)
			{
				case "TXT": //Text Box
						mControles = new ManejadorTextBox();
					break;
				case "CBX": // Combo Box
						mControles = new ManejadorCombo();
					break;
				case "DTP": // Date Time Picker
						mControles = new ManejadorDate();
					break;
				case "TXA": // Text Box con multiline
						mControles = new ManejadorTextArea();
					break;
				case "CBM": // Combo Box
						mControles = new ManejadorComboMeses();
					break;
				case "CBA": // Combo Box
						mControles = new ManejadorComboAnios();
					break;
				default:
						mControles = new ManejadorTextBox();
					break;
			}
			return mControles;
		}
	}
}
